package com.example.demo.entity.vo;

import com.example.demo.entity.pojo.LevelType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LevelTypeVo {
    //类型id
    private int typeId;
    //等级id
    private int levelId;
    //可借数量
    private int borrowNumber;
    //花费
    private double cost;

    public LevelTypeVo(LevelType levelType) {
        this.borrowNumber = levelType.getBorrowNumber();
        this.cost = levelType.getCost();

    }
}
